﻿namespace JxcLite.Services;

public interface IInventoryService : IService
{
    Task<PagingResult<InventoryInfo>> QueryInventoriesAsync(PagingCriteria criteria);
}

[Client]
class InventoryClient(HttpClient http) : ClientBase(http), IInventoryService
{
    public Task<PagingResult<InventoryInfo>> QueryInventoriesAsync(PagingCriteria criteria)
    {
        return Http.QueryAsync<InventoryInfo>("/Inventory/QueryInventories", criteria);
    }
}